//
//  HHHomeCell.m
//  YSJ
//
//  Created by 花花 on 2016/12/16.
//  Copyright © 2016年 花花. All rights reserved.
//

#import "HHHomeCell.h"


@implementation HHHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)priceOcClick:(UIButton *)sender {
}
- (IBAction)loveOnClick:(id)sender {
}

-(void)setModel:(HHHomeModel *)model{


    _model = model;
    
    
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.relation_object_image] placeholderImage:[UIImage imageNamed:@"bg_mine_head"]];
    
    [self.privebtn setTitle:[NSString stringWithFormat:@"￥%@",model.goods_price] forState:UIControlStateNormal];
    [self.privebtn setTitleColor:[UIColor colorWithHexString:ThemeColor] forState:UIControlStateNormal];
    
    self.titleLabel.text= model.relation_object_title;
    self.subLabel.text = model.relation_object_jingle;
    
    

}

@end
